

import bpy
import nodeitems_utils
from bpy.types import Operator, Menu



class C_节点子菜单_创建数据(Menu):
	bl_idname = "node.object_create_data"
	bl_label = "物体生成"

	def draw(self, context):
		layout = self.layout
		#layout.operator('node.global_node_obj_create')
		layout.operator('node.global_node_string_curves', icon='OUTLINER_OB_FONT')
		layout.operator('node.global_node_copy_obj', icon='COPYDOWN')
		layout.operator('node.global_node_material_copy')
		
		#new
		
		#layout.operator('node.global_node_create_plane', icon='NORMALS_FACE')
		layout.operator('node.global_node_load_mesh', icon='MOD_DATA_TRANSFER')
		#layout.operator('node.global_node_load_particle', icon='MOD_PARTICLES')
		layout.operator('node.global_node_save_mesh', icon='DISK_DRIVE')
		layout.operator('node.global_node_create_mesh', icon='MESH_DATA')
		
		layout.separator()
		layout.operator('node.from_meshs_create_objects', icon='GROUP')
		#layout.operator('node.global_node_model_import_engine', icon='IMPORT')


class C_节点子菜单_创建文本数据(Menu):
	bl_idname = "node.texts_create_data"
	bl_label = "文本数据生成"

	def draw(self, context):
		layout = self.layout
		layout.operator('node.global_node_sequence_name_text', icon='SEQ_SEQUENCER')
		layout.operator('node.global_add_value_int', icon='SEQ_SEQUENCER')





classes = (
	C_节点子菜单_创建数据,
	C_节点子菜单_创建文本数据,

)

def register():
	for c in classes:
		bpy.utils.register_class(c)

def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)

	



